package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Activetyrecord implements Serializable {
    private String afno;

    private String atno;

    private String fno;

    private String afname;

    private Date afbegintime;

    private Date afendtime;

    private Date afbegindate;

    private Date afenddate;

    private static final long serialVersionUID = 1L;

    public String getAfno() {
        return afno;
    }

    public void setAfno(String afno) {
        this.afno = afno;
    }

    public String getAtno() {
        return atno;
    }

    public void setAtno(String atno) {
        this.atno = atno;
    }

    public String getFno() {
        return fno;
    }

    public void setFno(String fno) {
        this.fno = fno;
    }

    public String getAfname() {
        return afname;
    }

    public void setAfname(String afname) {
        this.afname = afname;
    }

    public Date getAfbegintime() {
        return afbegintime;
    }

    public void setAfbegintime(Date afbegintime) {
        this.afbegintime = afbegintime;
    }

    public Date getAfendtime() {
        return afendtime;
    }

    public void setAfendtime(Date afendtime) {
        this.afendtime = afendtime;
    }

    public Date getAfbegindate() {
        return afbegindate;
    }

    public void setAfbegindate(Date afbegindate) {
        this.afbegindate = afbegindate;
    }

    public Date getAfenddate() {
        return afenddate;
    }

    public void setAfenddate(Date afenddate) {
        this.afenddate = afenddate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Activetyrecord other = (Activetyrecord) that;
        return (this.getAfno() == null ? other.getAfno() == null : this.getAfno().equals(other.getAfno()))
            && (this.getAtno() == null ? other.getAtno() == null : this.getAtno().equals(other.getAtno()))
            && (this.getFno() == null ? other.getFno() == null : this.getFno().equals(other.getFno()))
            && (this.getAfname() == null ? other.getAfname() == null : this.getAfname().equals(other.getAfname()))
            && (this.getAfbegintime() == null ? other.getAfbegintime() == null : this.getAfbegintime().equals(other.getAfbegintime()))
            && (this.getAfendtime() == null ? other.getAfendtime() == null : this.getAfendtime().equals(other.getAfendtime()))
            && (this.getAfbegindate() == null ? other.getAfbegindate() == null : this.getAfbegindate().equals(other.getAfbegindate()))
            && (this.getAfenddate() == null ? other.getAfenddate() == null : this.getAfenddate().equals(other.getAfenddate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAfno() == null) ? 0 : getAfno().hashCode());
        result = prime * result + ((getAtno() == null) ? 0 : getAtno().hashCode());
        result = prime * result + ((getFno() == null) ? 0 : getFno().hashCode());
        result = prime * result + ((getAfname() == null) ? 0 : getAfname().hashCode());
        result = prime * result + ((getAfbegintime() == null) ? 0 : getAfbegintime().hashCode());
        result = prime * result + ((getAfendtime() == null) ? 0 : getAfendtime().hashCode());
        result = prime * result + ((getAfbegindate() == null) ? 0 : getAfbegindate().hashCode());
        result = prime * result + ((getAfenddate() == null) ? 0 : getAfenddate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", afno=").append(afno);
        sb.append(", atno=").append(atno);
        sb.append(", fno=").append(fno);
        sb.append(", afname=").append(afname);
        sb.append(", afbegintime=").append(afbegintime);
        sb.append(", afendtime=").append(afendtime);
        sb.append(", afbegindate=").append(afbegindate);
        sb.append(", afenddate=").append(afenddate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}